/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.examinate.extheory.user.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 用户理论考试记录表Entity
 * @author zpp
 * @version 2020-02-08
 */
@Table(name="t_user_extheory", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="user_id", attrName="userId", label="user_id"),
		@Column(name="theory_id", attrName="theoryId", label="理论考试主键"),
		@Column(name="itemse", attrName="itemse", label="数据类型0未考试 1考试不通过2，考试进行中3.考试通过"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AppUserExtheory extends DataEntity<AppUserExtheory> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// user_id
	private String theoryId;		// 理论考试主键
	private Integer itemse;		// 数据类型0未考试 1考试不通过2，考试进行中3.考试通过
	
	public AppUserExtheory() {
		this(null);
	}

	public AppUserExtheory(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="user_id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=50, message="理论考试主键长度不能超过 50 个字符")
	public String getTheoryId() {
		return theoryId;
	}

	public void setTheoryId(String theoryId) {
		this.theoryId = theoryId;
	}
	
	public Integer getItemse() {
		return itemse;
	}

	public void setItemse(Integer itemse) {
		this.itemse = itemse;
	}
	
}